-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MODELIX-949: media type versioning + branch meta data access #862
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
- The
Content-Type
of the response is automatically set to the selectedAccept
value. - The
Content-Type
can be overridden when custom logic is needed. - Serialization works with the content type.
model-server/src/test/kotlin/org/modelix/model/server/ModelServerTestUtil.kt
Outdated
Show resolved
Hide resolved
dec8323
to
66e49ee
Compare
66e49ee
to
49751fb
Compare
JVM coverage report
|
Test Results141 files 141 suites 10m 59s ⏱️ Results for commit 2abc6b0. ♻️ This comment has been updated with latest results. |
model-server/src/test/kotlin/org/modelix/model/server/handlers/ModelReplicationServerTest.kt
Show resolved
Hide resolved
This adds a new media type for requesting branch metadata. The commit also prepares the openapi-generator templates to support media-type versioning by optionally being able to declare separate handler methods per media type. For registering types for JSON serialization, the model needs to be annotated with the intended media type via the x-modelix-media-type vendor extension.
49751fb
to
2abc6b0
Compare
🎉 This PR is included in version 8.12.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This PR adds a new media type for requesting branch metadata as the first test case to prepare for media-type versioning. To achieve this versioning the scheme, the PR modifies the openapi-generator templates so that one can optionally declare separate handler methods per media type(s) to generate in the API interface.
This PR also adds kotest-assertions and therefore closes MODELIX-795
To be verified by reviewers